package com.bor.gb.admin.ui;

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import ru.xpoft.vaadin.VaadinView;

import javax.annotation.PostConstruct;
import java.security.GeneralSecurityException;

/**
 * Created by bor on 22.03.14.
 */
@Component
@Scope("prototype")
@VaadinView(ErrorView.NAME)
public class ErrorView extends Panel implements View {

    public static final String NAME = "error";


    @PostConstruct
    public void PostConstruct() throws GeneralSecurityException {
        setSizeFull();
        VerticalLayout layout = new VerticalLayout();
        layout.setSpacing(true);
        layout.setMargin(true);

        layout.addComponent(new Label("Error"));
        setContent(layout);
    }

    @Override
    public void enter(ViewChangeListener.ViewChangeEvent event) {
    }
}
